package com.feihong.txgw.tx_model;

import com.feihong.txgw.inter.contract.order.TernminalOrderDetailContract;
import com.feihong.txgw.utils.helper.RxHelper;
import com.feihong.txgw.utils.manage.RetrofitManager;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName TerminalOrderDetailModel
 * @package com.feihong.txgw.tx_model
 * @data 2018/5/7 13:20
 * @Describe
 * @Change
 */
public class TerminalOrderDetailModel implements TernminalOrderDetailContract.ITerminalOrderDetailMainModel {

    public static TerminalOrderDetailModel create(){
        return new TerminalOrderDetailModel();
    }

    @Override
    public Observable getOrderDetail(String tableID, String orderID) {
        return RetrofitManager.getInstance().getTerminalOrderInfo(tableID,orderID).compose(RxHelper.rxSchedulerHelper());
    }
}
